function dailySign() {
    var ii = layer.load(0, {shade: false});
    var header = $("meta[name='_csrf_header']").attr("content");
    var token =$("meta[name='_csrf']").attr("content");
    console.log(token)
    console.log(header)
    $.ajax({
        cache: false,
        type: "POST",
        url: "../action/dailySign",
        contentType: 'application/json;charset=UTF-8',
        async: true,
        beforeSend : function(xhr) {
            xhr.setRequestHeader(header, token);
        },
        success: function (data) {
            layer.close(ii);
            if (data.code == '200') {
                layer.msg(data.msg, {
                    icon: 1,
                    time: 2000 //2秒关闭（如果不配置，默认是3秒）
                }, function () {
                });
            } else {
                layer.msg(data.msg, {
                    icon: 2,
                    time: 2000 //2秒关闭（如果不配置，默认是3秒）
                }, function () {
                });
            }
        },
    });
}